package com.hjy.common;

public enum ExceptionStatusCode {
    SUCCESS(200, "操作成功"),
    ERROR(500, "服务器错误"),
    NOT_FOUND(404, "资源未找到"),
    BAD_REQUEST(-1, "请求错误");

    private int code;
    private String message;

    ExceptionStatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    // 可以添加其他方法来扩展枚举类的功能
}